package com.paipai.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.paipai.entity.Bidding;

import tk.mybatis.mapper.common.Mapper;

public interface BiddingMapper extends Mapper<Bidding> {
	/**
	 * 查询竞价表
	 * @param id
	 * @return
	 */
	List<Bidding> findBiddingByProId(@Param("id") Integer id);
	
	/**
	 *  用户查询自己参与的竞价记录
	 * @param uid
	 * @return
	 */
	List<Bidding> findUserbiddingrecord(Integer uid);
	/**
	 * 以到期商品id查询 竞价表
	 * @param proId
	 * @return
	 */
	Bidding findEndDatebiddingByProId(Integer proId);
}